﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FactoryMethodPattern.Simplified
{
    /// <summary>
    /// 抽象工厂角色
    /// </summary>
    abstract class LoggerFactory 
    {
        public void WriteLog() 
        {
            Logger logger = this.CreateLogger();
            logger.WriteLog();
        }

        public abstract Logger CreateLogger();
    }

}
